% This set of files contains the Matlab code
% for the spectral-spatial active learning using belie propagation 
% intoduced in the papers
%
% [1] J. Li, J. Bioucas-Dias and A. Plaza. Spectral-Spatial Classification 
%  of Hyperspectral Data Using Loopy Belief Propagation and Active Learning. 
%  IEEE Transactions on Geoscience and Remote Sensing. 2012. Accepted
%
% [2] J. Li, J. Bioucas-Dias and A. Plaza. Hyperspectral Image Segmentation
%  Using a New Bayesian Approach with Active Learning. IEEE Transactions on
%  Geoscience and Remote Sensing.vol.49, no.10, pp.3947-3960, Oct. 2011.
%
% [3] J. S. Yedidia, W. T. Freeman, and Y. Weiss. Constructing free energy 
%  approximations and generalized belief propagation algorithms. 
%  IEEE Transactions on Information Theory, vol. 51, pp. 2282–2312, 2004.
%
%
%% Thanks 
% 
% Files:
%                         readme.m   -  this file
%            demo_AVIRIS_MPM_LBP.m  
%         demo_AVIRIS_MPM_LBP_AL.m   -  Matlab demo over real AVIRIS Indiana Pines dataset
%                  MPM_LBP_AL.m      -  Matlab function file integrating
%                                       MLR and MLL spatial prior, and
%                                       adopting active sampling methods
%               getNeighFromGrid.m   -  Matlab function computing the neigborhood 
%                     BP_message.m   -  Belief Propagation algorithm
%                         LORSAL.m   -  Matlab function file for LORSAL algorithm
% train_test_random_equal_number.m   -  Matlab function to randomly  select
%                                       training and testing set
% train_test_random_equal_percent.m  -  Matlab function to randomly  select
%                                       training and testing set
%                      mlldata.m   -  Matlab functon to generate simulated
%                                     image following a MLL distribution.
%                    mlogistic.m   -  Matlab function to compute the
%                                      multinomial distributions (one per sample)
%                    calcError.m   -  Matlab function to compute the
%                                     accuracies
%                     ToMatrix.m   -  Matlab function to reshape a vector
%                                     to a matrix 
%                     ToVector.m   -  Matlab function to reshape a matrix
%                                     to a vector
%  
%   AVIRIS_Indiana_16class.mat,imgreal.mat - Matlab data file with AVIRIS
%                                            Indiana Pines dataset
%
%
%%                 reference.bib   -  References. If you use this demo, please
%%                                  cite these references.
%
%  Any suggestions and comments are appreciated, and please send them to the
%  authors: jun@lx.it.pt. bioucas@lx.it.pt, aplaza@unex.es
%  August, 2010
%
%

